{% extends 'base.html' %}
{% block content %}
    <table width="1280" height="288" border="0" align="center" cellpadding="0"
           cellspacing="0" bgcolor="#FFFFFF">
    <tr>
    <td align="center" valign="top">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="18" height="45" align="right">&nbsp;</td>
                <td colspan="3" class="tableBorder_B_dashed">
                    <h3>[添加商品信息]</h3>
                </td>
                <td width="24">&nbsp;
                </td>
            </tr>
            <tr>
                <td align="right">&nbsp;</td>
                <td height="10" colspan="3">&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td height="29" align="right">&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
        </table>
        {% for msg in get_flashed_messages() %}　　　　　　　　　　
            <!--这里对应视图函数里定义的提示信息 flash-->

            <p class="login-box-msg" style="color: red;">{{ msg }}</p>　　　　
            <!--信息在前端显示-->
        {% endfor %}
        <form id="form-data" method="post">
            <table width="94%" border="0" align="center" cellpadding="0"
                   cellspacing="0" bordercolordark="#FFFFFF">
                <tr>
                    <td width="14%" height="27">&nbsp;设备名称：</td>
                    <td height="27" colspan="3">&nbsp;
                        {{ form.hardwarename }}
                        {% for err in form.hardwarename.errors %}
                            <span style="float:left;padding-top:10px;color:red">{{ err }}</span>
                        {% endfor %}
                    </td>
                </tr>
                <tr>
                    <td height="29" align="right">&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td height="38" colspan="1" align="center">
                        {{ form.csrf_token }}
                        {{ form.submit }}
                    </td>
                </tr>
            </table>
        </form>
    </td>
{% endblock %}
